#ifndef SERIAL
#define SERIAL

#define BUFF_SIZE 	128

void rs485RE(void);

void rs485DE(void);

void serialInit(void);

unsigned char serialCheckRxComplete(void);

unsigned char serialCheckTxReady(void);

unsigned char serialRead(void);

void serialWrite(unsigned char);

void rsWrite(unsigned char *, unsigned char);

unsigned char rsCheck(void);

unsigned char rsRead(unsigned char *);

#endif
